public class SkeletonIdleState : SkeletonGroundState
{
    public SkeletonIdleState(Enemy enemy, string animName) : base(enemy, animName) { }

    public override void Enter()
    {
        base.Enter();
        stateTimer = Enemy.idleTime;
        Enemy.SetVelocityToZero();
    }

    public override void Update()
    {
        base.Update();

        if (stateTimer <= 0)
        {
            StateMachine.ChangeTo(Enemy.MoveState);
        }
    }

    public override void Exit()
    {
        base.Exit();
        AudioManager.Instance.PlaySfx(24, Enemy.transform);
    }
}
